package com.dependencies.springdatajpa.repository;

import com.dependencies.springdatajpa.entity.Geographic;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhizhou   2024/9/24 09:55
 */
@Repository
public interface GeographicRepository extends JpaRepository<Geographic, Long> {
    
    List<Geographic> findByParentId(Long parentId);
    
}
